package com.example.bigwork.dto.request;


import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.List;

@Data
public class OrderCreateRequest {
    @NotNull(message = "User ID cannot be null")
    private Long userId; // In a real scenario with authentication, this might be derived from the logged-in user's context

    @NotEmpty(message = "Order must contain at least one item")
    @Valid // Important to validate items in the list
    private List<OrderItemRequest> items;
}
